<template>
    <p>
        4. 整合vuex
        <button @click="() => store.commit('increment')">{{ store.state.count }}</button>
    </p>
</template>

<script>
import { useStore } from 'vuex'

export default {
    setup() {
        const store = useStore()
        return {
            store
        }
    }
}
</script>

<style lang="scss" scoped>
</style>